SignalSource Class

Description

Signal output port.

It is used to expose output port for a component.

All members of this class is thread-safe.

setHandler

Sets data handler.

C

void easyar_SignalSource_setHandler(easyar_SignalSource * This, easyar_OptionalOfFunctorOfVoid handler)

C++17

void setHandler(std::optional<std::function<void()>> handler)

C++03(Deprecated)

void setHandler(OptionalOfFunctorOfVoid handler)

Java

public void setHandler(@Nullable FunctorOfVoid handler)

Kotlin

fun setHandler(handler: FunctorOfVoid?): Unit

Objective-C

- (void)setHandler:(void (^)())handler

Swift

public func setHandler(_ handler: (() -> Void)?) -> Void

C#

public virtual void setHandler(Optional<Action> handler)

connect

Connects to input port.

C

void easyar_SignalSource_connect(easyar_SignalSource * This, easyar_SignalSink * sink)

C++17

void connect(std::shared_ptr<SignalSink> sink)

C++03(Deprecated)

void connect(SignalSink * sink)

Java

public void connect(@Nonnull SignalSink sink)

Kotlin

fun connect(sink: SignalSink): Unit

Objective-C

- (void)connect:(easyar_SignalSink *)sink

Swift

public func connect(_ sink: SignalSink) -> Void

C#

public virtual void connect(SignalSink sink)

disconnect

Disconnects.

C

void easyar_SignalSource_disconnect(easyar_SignalSource * This)

C++17

void disconnect()

C++03(Deprecated)

void disconnect()

Java

public void disconnect()

Kotlin

fun disconnect(): Unit

Objective-C

- (void)disconnect

Swift

public func disconnect() -> Void

C#

public virtual void disconnect()